//
//  MSLoginManager.h
//  MSJD
//
//  Created by 箭军刘 on 2018/11/2.
//  Copyright © 2018 xiangbo. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

/**
 登录管理器
 */
@interface MSLoginManager : NSObject

@property (nonatomic, readonly, assign) NSInteger type;

/** 登录成功回调 type:0 手机号码登录成功  1 微信登录成功 */
@property (nonatomic, copy) void (^LoginSuccessBlock)(NSInteger type);
/** 登录失败回调 errorMsg:回调信息 */
@property (nonatomic, copy) void (^LoginFailedBlock)(NSInteger type);

+ (instancetype)loadLoginManagerWithCurrentVC:(UIViewController *)currentVC;

/** 手机号码登录 */
- (void)phoneLoginWithPhone:(NSString *)phone pwd:(NSString *)pwd;

/** 微信登录 */
- (void)wechatLogin;

/** 移除通知 */
- (void)removeWechatLoginNotification;

@end

NS_ASSUME_NONNULL_END
